package com.xx.happychatboot.serve.user.service;


import com.xx.happychatboot.serve.user.domain.entity.UserFriend;
import com.xx.happychatboot.serve.user.domain.vo.response.UserFriendVo;
import io.mybatis.service.BaseService;

import java.util.List;

/**
 * <p>
 * 用户联系人表 服务类
 * </p>
 *
 * @author xiaoXuan
 * @since 2025-01-02
 */
public interface IUserFriendService extends BaseService<UserFriend, Long> {

    /**
     * 获取最新好友数据
     * @param userId
     * @return
     */
    List<UserFriendVo> getContactList(Long userId);

    /**
     *
     * @param uid
     * @param targetId
     * @return
     */
    UserFriend buildNewFriend(Long uid, Long targetId);
}
